﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml.Serialization;

namespace ShopzillaV1.Models
{
    

    [XmlRoot("TaxonomyResponse")]
    public class TaxonomyResponse
    {
        [XmlElement("Taxonomy")]
        public Taxonomy Taxonomy { get; set; }
    }

    [XmlRoot("Taxonomy")]
    public class Taxonomy
    {
        [XmlArray("Categories")]
        [XmlArrayItem("Category")]
        public List<Category> Categories { get; set; }
    }

    [XmlRoot("Category")]
    public class Category
    {
        [XmlAttribute("id")]
        public string ID { get; set; }

        [XmlElement("name")]
        public string Name { get; set; }

        [XmlElement("url")]
        public string Url { get; set; }

        [XmlArray("Children")]
        [XmlArrayItem("Category")]
        public List<Category> ChildCategories { get; set; }
    }


}